package com.rightsidetech.system.mapper;

import com.rightsidetech.system.dtos.request.ActivityFileReq;
import com.rightsidetech.system.dtos.response.material.ActivityFileResp;
import com.rightsidetech.system.entity.SysMaterialDetails;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysMaterialDetailsMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SysMaterialDetails record);

    int insertSelective(SysMaterialDetails record);

    SysMaterialDetails selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysMaterialDetails record);

    int updateByPrimaryKey(SysMaterialDetails record);

    int insertBatch(@Param("fileReqs") List<ActivityFileReq> fileReqs, @Param("activityId") Long activityId);

    int delByActivityId(@Param("activityId") Long activityId);

    List<ActivityFileResp> selectByActivityId(@Param("recordId") Long recordId);

    int updateDel(@Param("recordId") Long recordId);

    List<SysMaterialDetails> selectList(@Param("recordId") Long recordId);

    int updateByIds(@Param("ids") List<Long> ids);
}